package com.big.app.controller;


import com.big.app.bo.PayzBo;
import com.big.app.service.intf.PayzService;
import com.big.app.vo.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController //@Controller+@ResponseBody
@RequestMapping("/api/payz/") //映射地址
@CrossOrigin //跨域
@Api(value = "实现支付z相关操作",tags = "实现支付z相关操作")
public class PayzController {
    @Autowired
    private PayzService service;
    //创建
    @PostMapping("create.do")
    public R createPay(@RequestBody PayzBo bo){
        return service.createPay(bo);
    }
    //查询
    @GetMapping("detail.do")
    public R query(int oid){
        return service.queryPay(oid);
    }
    @GetMapping("all.do")
    public R all(){
        return service.queryAll();
    }
}
